public class Main {
    public static void main(String[] args) {
        IgoChessmanFactory factory = new IgoChessmanFactory();
        IgoChessman igoChessman;
        igoChessman=factory.getIgoChessman("白色");
        System.out.println(igoChessman.getColor()+ "哈希值为" +igoChessman.hashCode());
        igoChessman=factory.getIgoChessman("黑色");
        System.out.println(igoChessman.getColor()+ "哈希值为" +igoChessman.hashCode());
        igoChessman=factory.getIgoChessman("白色");
        System.out.println(igoChessman.getColor()+ "哈希值为" +igoChessman.hashCode());
        igoChessman=factory.getIgoChessman("黑色");
        System.out.println(igoChessman.getColor()+ "哈希值为" +igoChessman.hashCode());
    }
}